<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>vue学习</title>
    <script src="./js/vue.js"></script>
    <style>
      .a {
        /* fontSize */
        font-size: 30px;
        /* backgroundImage:url() */
        /* background-image: url(''); */
      }
    </style>
  </head>
  <body>
    <div id="app">
      <!-- 
        style动态样式
         + 对象
          :style="{ color:'red',fontSize:'30px' ...}"
         + 数组
          :style="[{color:'red',fontSize:'30px'},{fontWeight:'bold'}]"
       -->
      <div :style="{color:'red',fontSize:'40px',fontWeight:'bold'}">
        我是一个标题
      </div>
      <div :style="[{color:'red',fontSize:'40px'},{fontWeight:'bold'}]">
        我是一个标题
      </div>
    </div>
    <script>
      const app = Vue.createApp({
        data() {
          return {}
        }
      })
      app.mount('#app')
    </script>
  </body>
</html>
